﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class WXSmallProgramBroadcastInfoConfig : EntityTypeConfiguration<WXSmallProgramBroadcastInfo>
    {
        public WXSmallProgramBroadcastInfoConfig()
        {
            ToTable("Himall_WXSmallProgramBroadcast");
            Property(item => item.Image).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Content).HasColumnType("varchar").HasMaxLength(1000);        
            HasRequired(x => x.WXSmallProgramInfo).WithMany(x => x.WXSmallProgramBroadcastInfo).HasForeignKey(x => x.SPId);
        }
    }
}
